﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Web.Script.Serialization;
using System.Xml.Serialization;

namespace Datav.Design.Datas.Pocos;

/// <summary>组件</summary>
public partial class ProjectComsModel
{
    #region 属性
    /// <summary>编号</summary>
    public Int64 Id { get; set; }

    /// <summary>父Id</summary>
    public Int64 ParentId { get; set; }

    /// <summary>路径</summary>
    public String Paths { get; set; }

    /// <summary>类型名称</summary>
    public String Name { get; set; }

    /// <summary>案例ID</summary>
    public Int64 ProjectId { get; set; }

    /// <summary>属性</summary>
    public String Attr { get; set; }

    /// <summary>东座行动</summary>
    public String Actions { get; set; }

    /// <summary>缩放比例</summary>
    public String Scaling { get; set; }

    /// <summary>别名</summary>
    public String Alias { get; set; }

    /// <summary>接口数据</summary>
    public String ApiData { get; set; }

    /// <summary>动态APIs</summary>
    public String Apis { get; set; }

    /// <summary>配制</summary>
    public String Config { get; set; }

    /// <summary>事件</summary>
    public String Events { get; set; }

    /// <summary>图标</summary>
    public String Icon { get; set; }

    /// <summary>标签</summary>
    public Int32 Tag { get; set; }

    /// <summary>背景图</summary>
    public String Img { get; set; }

    /// <summary>组件类型</summary>
    public String Type { get; set; }

    /// <summary>排序</summary>
    public Int32 Sort { get; set; }

    /// <summary>选中</summary>
    public Boolean Selected { get; set; }

    /// <summary>锁</summary>
    public Boolean Locked { get; set; }

    /// <summary>缩放比例</summary>
    public Boolean Hided { get; set; }

    /// <summary>Hovered</summary>
    public Boolean Hovered { get; set; }

    /// <summary>名称</summary>
    public Boolean Renameing { get; set; }

    /// <summary>租户id</summary>
    public Int64 TenantId { get; set; }

    /// <summary>是否删除</summary>
    public Int32 IsDelete { get; set; }

    /// <summary>创建时间</summary>
    public DateTime CreateTime { get; set; }

    /// <summary>创建人</summary>
    public Int64 CreateBy { get; set; }

    /// <summary>创建人名称</summary>
    public String CreateName { get; set; }

    /// <summary>更新时间</summary>
    public DateTime UpdateTime { get; set; }

    /// <summary>修改建人</summary>
    public Int64 UpdateBy { get; set; }
    #endregion

    #region 拷贝
    /// <summary>拷贝模型对象</summary>
    /// <param name="model">模型</param>
    public void Copy(IProjectComs model)
    {
        Id = model.Id;
        ParentId = model.ParentId;
        Paths = model.Paths;
        Name = model.Name;
        ProjectId = model.ProjectId;
        Attr = model.Attr;
        Actions = model.Actions;
        Scaling = model.Scaling;
        Alias = model.Alias;
        ApiData = model.ApiData;
        Apis = model.Apis;
        Config = model.Config;
        Events = model.Events;
        Icon = model.Icon;
        Tag = model.Tag;
        Img = model.Img;
        Type = model.Type;
        Sort = model.Sort;
        Selected = model.Selected;
        Locked = model.Locked;
        Hided = model.Hided;
        Hovered = model.Hovered;
        Renameing = model.Renameing;
        TenantId = model.TenantId;
        IsDelete = model.IsDelete;
        CreateTime = model.CreateTime;
        CreateBy = model.CreateBy;
        CreateName = model.CreateName;
        UpdateTime = model.UpdateTime;
        UpdateBy = model.UpdateBy;
    }
    #endregion
}
